import './assets/main.css'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'

// 自定义图标
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/svgIcon/index.vue' // 引入svg组件
// pinia 数据持久化
import createPersistedState from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(createPersistedState)

const app = createApp(App)
app.component('svg-icon', SvgIcon)
app.use(pinia)
app.use(router)
app.use(Antd)
app.mount('#app')
